﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="He.Web.manage.attrfield.list" %>

<%@ Register Src="../_uc/head_list.ascx" TagPrefix="uc" TagName="head_list" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>扩展字段管理</title>
    <uc:head runat="server" ID="uchead" />
    <uc:head_list runat="server" ID="uchead_list" />
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"><a href="edit.aspx?channel_id=<%=channel_id %>">增加扩展字段</a></span><b>您当前的位置：首页
            &gt; 扩展字段管理 &gt; 扩展字段列表</b></div>
    <div class="spClear">
    </div>
    <asp:Repeater ID="rptList" runat="server">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th width="6%">
                        选择
                    </th>
                    <th width="6%">
                        编号
                    </th>
                    <th>
                        字段标题
                    </th>
                    <th>字段列名</th>
                    <th width="16%">
                        类型
                    </th>
                    <th width="90">
                        是否必填
                    </th>
                    <th width="90">
                        排序数字
                    </th>
                    <th width="90">
                        状态
                    </th>
                    <th width="8%">
                        操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:CheckBox ID="cb_id" CssClass="checkall" runat="server" />
                </td>
                <td>
                    <asp:Label ID="lb_id" runat="server" Text='<%#Eval("id")%>'></asp:Label>
                </td>
                <td>
                    <a href="edit.aspx?id=<%#Eval("Id") %>&channel_id=<%=channel_id %>&action=<%=He.Web.UI.Enums.ActionEnum.Edit %>">
                        <%#Eval("title")%></a>
                </td>
                <td><%#Eval("name") %></td>
                <td>
                    <%#GetTypeCn(Eval("control_type").ToString())%></a>
                </td>
                <td>
                    <%# Convert.ToInt32(Eval("is_required")) == 1 ? "必填" : "非必填"%>
                </td>
                <td>
                    <asp:TextBox ID="txtSortId" runat="server" Text='<%#Eval("sort_id")%>' CssClass="txtInput2 small2"
                        onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));" />
                </td>
                <td>
                    <%#Convert.ToBoolean(Eval("is_lock")) == false ? "<img title=\"显示\" src=\"../images/correct.gif\" />":"<image title=\"隐藏\" src=\"../images/disable.gif\" />" %>
                </td>
                <td>
                    <span><a href="edit.aspx?id=<%#Eval("id") %>&channel_id=<%=channel_id %>&action=<%=He.Web.UI.Enums.ActionEnum.Edit %>">
                        修改</a></span>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <div class="spClear">
    </div>
    <div style="line-height: 30px; height: 30px;">
        <div id="Pagination" class="right flickr">
        </div>
        <div class="left">
            <span class="btn_all" onclick="CheckAll(this)">全 选</span> <span class="btn_bg">
                <asp:LinkButton ID="lbtnDel" runat="server" OnClientClick="return confirm( '确定要删除这些记录吗？ ');"
                    OnClick="lbtnDel_Click">删 除</asp:LinkButton>
            </span><span class="btn_bg">
                <asp:LinkButton ID="lbtnSave" runat="server" OnClick="lbtnSave_Click">保存排序</asp:LinkButton></span>
        </div>
    </div>
    </form>
</body>
</html>
